// ie polyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 加载全局样式
import './styles/index.less'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入全局路由守卫
import './permisson'

import Antd, { Icon } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
// projectId=1546640
import './assets/js/iconfont'
import VueCompositionAPI from '@vue/composition-api' // vue3.0comsition api

import vueAjax from './api/vueAjax' // 封装全局http请求
Vue.prototype.$vueAjax = vueAjax

const IconFont = Icon.createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_1213433_kjg2sk1zlg.js'
})
Vue.component('IconFont', IconFont)

Vue.use(VueCompositionAPI)
Vue.use(ElementUI, {
  size: 'mini'
})
Vue.use(Antd)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
